webpackJsonp([9],[
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	var url = __webpack_require__(8);
	var template = __webpack_require__(9);
	var main = __webpack_require__(11);

	//模板配置
	var tplArr = [];
	var moduleTpl = __webpack_require__(19);
	tplArr['module'] = template.compile(moduleTpl.replace(/^\s*|\s*$/g, ""));
	var baseUrl = "/img/";

	var goodsInfo = [{
	    "id": 1,
	    "title": "大家乐文胸一片式无痕内衣厚B杯深V聚拢商场同款内衣1",
	    "attr": [],
	    "num": "1002837828372",
	    "spec": "大红,B杯,34/75",
	    "quantity": "1",
	    "inStock": "258",
	    "colour": "红色、粉色、嫩肤",
	    "cup": "A杯、B杯、C杯",
	    "size": "32/70、40/75",
	    "price": "99"
	}, {
	    "id": 2,
	    "title": "大家乐文胸一片式无痕内衣厚B杯深V聚拢商场同款内衣2",
	    "attr": [],
	    "num": "1002837828372",
	    "spec": "大红,B杯,34/75",
	    "quantity": "1",
	    "inStock": "258",
	    "colour": "红色、粉色、嫩肤",
	    "cup": "A杯、B杯、C杯",
	    "size": "32/70、40/75",
	    "price": "98"
	}];

	var starInfo = {
	    tType: "star",
	    dataList: [{
	        key: "评价",
	        value: "4",
	        bigStar: true
	    }, {
	        key: "商品包装",
	        value: "0",
	        click: "starClick"
	    }]
	};
	//个人信息
	var data_headgrid = {
	    tType: "headgrid",
	    image: "",
	    title: "Golan Yao",
	    tag: "超级粉丝"
	};
	//个人信息(竖列)
	var data_headblock = {
	    tType: "headblock",
	    image: "",
	    title: "Golan Yao",
	    tag: "虚拟店员",
	    content: [{
	        key: "店员编号",
	        value: "123"
	    }],
	    qrcode: "http://placeholder.qiniudn.com/300x300",
	    qrlink: "",
	    qrdetail: "扫码成为专享粉丝，享受粉丝福利！"
	};
	//积分
	var data_account = {
	    tType: "account",
	    key: "当前积分",
	    val: "1200",
	    name: "去积分商城"
	};
	//超链接列表
	var data_arrlist = {
	    tType: "arrlist",
	    dataList: [{
	        name: "我的优惠券",
	        link: ""
	    }, {
	        name: "我收藏的商品",
	        link: ""
	    }, {
	        name: "我的收货地址",
	        link: ""
	    }]
	};
	//申请加入说明
	var data_partner = {
	    tType: "partner",
	    title: "恭喜您！您已成为【超级粉丝】有机会成为【虚拟店员】",
	    description: "虚拟店员可获得虚拟店员专享二维码，享有8折拿货。",
	    link: "",
	    name: "大家乐会员规则"
	};
	//我的订单
	var data_tabblock = {
	    tType: "tabblock",
	    title: "我的订单",
	    baseUrl: baseUrl,
	    dataList: [{
	        image: "order_1.jpg",
	        name: "全部订单",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_2.jpg",
	        name: "待付款",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_3.jpg",
	        name: "代收货",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_4.jpg",
	        name: "待评价",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_5.jpg",
	        name: "退换货",
	        click: "",
	        cornernum: ""
	    }]
	};
	//header
	var data_header = {
	    tType: "header",
	    number: "No.62728"
	};
	var data_footer = {
	    tType: "footer",
	    active: "0",
	    dataList: [{
	        link: "",
	        icon: "/img/f_icon2.jpg",
	        name: "首页"
	    }, {
	        link: "",
	        icon: "/img/f_icon2.jpg",
	        name: "购物车"
	    }, {
	        link: "",
	        icon: "/img/f_icon2.jpg",
	        name: "个人中心"
	    }]
	};
	function Module() {
	    _this = this;
	    this.main = function () {
	        main.event(this, 'tap', 'mo-click');
	        this.init();
	        this.abc = "123";
	    };

	    /**
	     * [getModule 获取模板]
	     * @param  {[json]} ret  [数据集]
	     * @param  {[string]} name [模板名]
	     * @return {[string]}      [生成html]
	     */
	    this.getModule = function (ret, name) {
	        if (!name) return '';
	        if (!ret) {
	            ret = {};
	        }
	        var data = ret;
	        data.tType = name;
	        return tplArr['module'](data);
	    };

	    //订单商品信息
	    this.ordersGoodsInfo = function (ret) {
	        if (!ret) {
	            var ret = {};
	        }
	        var data = {
	            "tType": "ordersGoodsInfo",
	            "list": ret
	        };
	        return tplArr['module'](data);
	    };
	    //省市区地址选择
	    this.selectAddress = function (ths) {
	        if (typeof ths == 'number') {} else if (ths) {} else {
	            var data = {
	                "tType": "selectaddress"
	            };
	            return tplArr['module'](data);
	        }
	        function getData(type) {
	            var opt = "";
	            main.get(url, function (ret) {
	                for (var i = 0; i < ret.data.length; i++) {
	                    opt += "<option>2014</option>";
	                }
	                $(type).html(opt);
	            });
	        }
	    };
	    //星级
	    this.star = function (ret) {
	        if (!ret) {
	            ret = JSON.parse('{}');
	        }
	        var data = {
	            tType: "star",
	            dataList: ret
	        };
	        return tplArr['module'](data);
	    };
	    //省市区地址选择
	    this.selectAddress = function () {
	        var data = {
	            "Ttype": "selectAddress",
	            "list": ret
	        };
	        return tplArr['module'](data);
	    };
	    //星级点击
	    this.starClick = function (ths, num) {
	        var _c = ths.parents("div.stars");
	        _c.find("i").removeClass("on");
	        $.each(_c.find("i"), function (i, v) {
	            if (i + 1 <= num) {
	                $(this).addClass("on");
	            }
	        });
	    };
	    //输出内容
	    this.outHtml = function () {
	        $('.ui-container').html(_this.ordersGoodsInfo(goodsInfo) + _this.star(starInfo) + _this.selectAddress());
	    };
	    //底部弹出层demo
	    this.showBotActionsheet = function () {

	        if (!ret) {
	            var ret = {};
	        }
	        var data = {
	            "tType": "showBotActionsheet",
	            "list": ret
	        };
	        main.botActionsheet({ "centent": tplArr['module'](data) });
	    };
	    this.init = function () {

	        this.baseUrl = "/img/";
	        this.outHtml();
	        //main.alert();
	        //main.botActionsheet();
	    };
	    return this.main();
	};

	var mod = new Module();
	module.exports = mod;

/***/ }
]);